-- GENERATED SPELL FOR [Syndicate Sentry] --


function spell0_2243(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2243', 8260, 1)
end

function spell1_2243(pUnit, Event) --@Shield Wall,Self--
pUnit:FullCastSpellOnTarget(15062,pUnit)
pUnit:RegisterEvent('Sorts_2243', 10337, 1)
end

function Sorts_2243(pUnit, Event)
local choix_sorts_2243 = math.random(0, 1)
if choix_sorts_2243 == 0 then
pUnit:RegisterEvent('spell0_2243', 1, 1)
end
if choix_sorts_2243 == 1 then
pUnit:RegisterEvent('spell1_2243', 1, 1)
end
end

function mob2243_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2243', math.random(1500, 3000), 1)
end

function mob2243_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2243_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2243_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2243, 1, 'mob2243_Action')
RegisterUnitEvent(2243, 2, 'mob2243_Leave')
RegisterUnitEvent(2243, 3, 'mob2243_Kill')
RegisterUnitEvent(2243, 4, 'mob2243_Die')
